package com.kelvin.paopao.injector.modules;

import android.app.Notification;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.kelvin.kelvinlib.db.dao.DaoSession;
import com.kelvin.paopao.adapter.MainFindAdapter;
import com.kelvin.paopao.adapter.MessageAdapter;
import com.kelvin.paopao.adapter.MessageMultiAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.injector.PerFragment;
import com.kelvin.paopao.module.chat.message.IMessagePresenter;
import com.kelvin.paopao.module.chat.message.MessageActivity;
import com.kelvin.paopao.module.chat.message.MessagePresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/9.
 */

@Module
public class MessageModule {
    private MessageActivity mView;

    public MessageModule(MessageActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IMessagePresenter providerPresenter(DaoSession daoSession) {
        return new MessagePresenter(mView, daoSession);
    }

    @PerActivity
    @Provides
    public MessageMultiAdapter provideAdapter(DaoSession daoSession) {
        return new MessageMultiAdapter(mView, daoSession, null);
    }
}
